.zustand-demo {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.header-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.header-display h2 {
  margin: 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.counter-card,
.title-card {
  height: 100%;
}

.counter-value {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: bold;
}

.counter-actions {
  display: flex;
  justify-content: center;
}

.state-inspector {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow: auto;
  max-height: 200px;
  font-family: monospace;
  font-size: 13px;
  margin: 0;
}

/* 添加一些动画效果 */
.counter-value span {
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}
